package com.youlu.campus.service.university;

import com.youlu.campus.entity.UniversityInfo;
import com.youlu.campus.entity.VO.req.ImportUniversityExcelVO;
import com.youlu.campus.entity.VO.req.ImportUniversityInfoExcelVO;
import com.youlu.campus.entity.VO.req.UniversityInfoQueryVO;
import org.springframework.data.domain.Page;

import javax.validation.constraints.NotNull;
import java.util.List;

public interface UniversityInfoService {

    Page<UniversityInfo> list(UniversityInfoQueryVO req);

    /**
     * 根据ids 查询大学列表
     *
     * @param ids
     * @return
     */
    List<UniversityInfo> listByIds(@NotNull List<String> ids);

    boolean create(UniversityInfo req);

    boolean update(UniversityInfo req);

    boolean delete(String id);

    UniversityInfo findOne(String id);

    UniversityInfo getCache(String id);

    void importUniversity(List<ImportUniversityExcelVO> importUniversityExcelList);

    UniversityInfo saveOrUpdate(UniversityInfo updateUniversity);

    void importBatchUniversity(List<ImportUniversityInfoExcelVO> importBatchUniversityExcelList);

    boolean deletePshysics(String id);

}
